package com.chen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.dto.TeacherDTO;
import com.chen.dto.TeacherLoginDTO;
import com.chen.entity.Teacher;
import com.chen.vo.TeacherVO;
import com.github.pagehelper.Page;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * 教师相关服务
 */
public interface TeacherService extends IService<Teacher> {

    /**
     * 教师登陆
     * @param dto
     * @return
     */
    TeacherVO teacherLogin(TeacherLoginDTO dto);

    /**
     * 查找所有非班主任教师
     * @return
     */
    List<TeacherVO> findTeacherNoHead();

    /**
     * 教师总人数
     * @return
     */
    Long findAllCount();

    /**
     * 教师信息分页查询
     * @param startIndex
     * @param pageShow
     * @return
     */
    List<TeacherVO> listPage(Integer startIndex, Integer pageShow);

    /**
     * 新增教师信息
     * @param teacher
     * @return
     */
    Integer saveTeacher(TeacherDTO teacher);

    /**
     * 修改教师信息
     * @param teacher
     * @return
     */
    Integer updateTeacher(TeacherDTO teacher);

    /**
     * 删除教师信息
     * @param teacherId
     * @return
     */
    Integer deleteTeacher(Integer teacherId);

    /**
     * 根据教师id获取教师信息
     * @param id
     * @return
     */
    TeacherVO getTeacherById(Integer id);

}
